<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script type="text/javascript" src="./js/vue.js"></script>
    <script type="text/javascript" src="./js/config.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <title>Vue</title>

</head>
<body>
<div id="app">
    <h1>{{ msg }}</h1> <!-- 插值语法-->


</div>
<!-- 引入 -->

<script>
    // 实例化vue
    const app = new Vue({
        // vue的选项，el选项的作用指定vue实例管理的容器
        el:'#app',
        // vue选项，data作用是声明响应式数据
        data:{
            msg: '别看了，我最帅'
        },
        created() {
            this.get()
        },
        methods: {
            get(){
                let uri = basic
                axios.get(uri).then(function (response){
                    console.log(response);
                }).catch(function (error) {
                    console.log(error);
                });
            }
        }
    })
</script>
</body>
</html>